package com.zhu.scan;

import org.springframework.beans.factory.config.BeanDefinitionHolder;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;

import java.util.Set;

/**
 * @ClassName MyBeansScanner
 * @Description TODO
 * @Author zhuxiongbin
 * @Date 2021-11-10 9:19
 * @Version 1.0.0
 */
public class MyBeansScanner extends ClassPathBeanDefinitionScanner {

    public MyBeansScanner(BeanDefinitionRegistry registry) {
        super(registry,false);
    }

    @Override
    protected Set<BeanDefinitionHolder> doScan(String... basePackages) {
        return super.doScan(basePackages);
    }
}
